package vo;

import po.SlCoursePO;

public class SlCourseVO {
	String courseID;
	String courseName;
	String teacherID;
	String teacherName;
	String studentID;
	String studentName;
	String studentDepartment;
	String score;

	public SlCourseVO() {

	}

	// lbq
	public SlCourseVO(String courseID, String coureName, String tID,
			String sID, String sName, String dep, String score) {
		this.courseID = courseID;
		this.courseName = coureName;
		this.teacherID = tID;
		this.studentID = sID;
		this.studentName = sName;
		this.studentDepartment = dep;
		this.score = score;
	}


	public SlCourseVO(String courseID, String courseName) {
		// TODO Auto-generated constructor stub
		this.courseID = courseID;
		this.courseName = courseName;

	}

	public SlCourseVO(String courseID, String courseName, String studentID,
			String score) {
		// TODO Auto-generated constructor stub
		this.courseName = courseName;
		this.courseID = courseID;
		this.studentID = studentID;
		this.score = score;
	}
	
	public SlCourseVO(String courseID, String courseName, String studentID,
			String studentName, String studentDepartment) {
		this.courseID = courseID;
		this.courseName = courseName;
		this.studentID = studentID;
		this.studentName = studentName;
		this.studentDepartment = studentDepartment;
	}
	
	//lbq
	public SlCoursePO toPO(){
		
		SlCoursePO po = new SlCoursePO(courseID,courseName,teacherID,
				studentID, studentName,studentDepartment, score);
		po.setTeacherName(this.teacherName);
		
		return po;
	}

	public String getcourseID() {
		return courseID;

	}

	public String getcourseName() {

		return courseName;

	}

	public void setTeacherName(String tName){
		this.teacherName = tName;
	}
	
	public void recordScore(String score) {
		this.score = score;
	}

	public String getStudentID() {
		return studentID;
	}

	public String getStudentName() {
		return studentName;
	}
	
	public String getStudentDepartment(){
		return studentDepartment;
	}
	
	public String getScore() {
		return score;
	}


	
	public String[] getStudentData(){
		String[] data ={courseID,courseName,studentID,studentName,studentDepartment}; 
		return data;
	}

}
